import {
  request,
  requestSync
} from '@/utils/request'
/*
门店员工管理
*/

// 门店员工列表
export function shopUserList(data) {
  return requestSync({
    url: '/system/advertising/shop/user/shopUserList',
    method: 'post',
    data
  })
}

// 获取门店添加员工二维码URL
export function shopUserQrCode(advertisingId) {
  return requestSync({
    url: '/system/advertising/shop/user/qrCode',
    method: 'post',
    data:{advertisingId}
  })
}

// 移除员工
export function shopUserRemove(userId) {
  return requestSync({
    url: '/system/advertising/shop/user/remove',
    method: 'post',
    data:{userId}
  })
}

// 员工状态
export function userUpdateState(data) {
  return requestSync({
    url: '/system/advertising/shop/user/onDuty',
    method: 'post',
    data
  })
}


